<%--
  Created by IntelliJ IDEA.
  User: 15426
  Date: 2023/11/23 0023
  Time: 16:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>item list</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/item/update.do" method="post">
<table border="1">
    <tr>
        <td>序号</td>
        <td><input type="text" value="${item.id}" name="id"></td>
    </tr>
    <tr>
        <td>名称</td>
        <td>
            <input type="text" value="${item.itname}" name="itname">
            <input type="hidden" value="${item.id}" name="id">
        </td>
    </tr>
    <tr>
        <td>价格</td>
        <td><input type="text" value="${item.price}" name="price"></td>
    </tr>
    <tr>
        <td>描述</td>
        <td><textarea rows="10" cols="40" name="detail">${item.detail}</textarea></td>
    </tr>
    <tr>
        <td>图片</td>
        <td>
            <img alt="" src="${item.pic}"><br/>
            <input type="file" name="pic">
        </td>
    </tr>
    <tr>
        <td colspan="2"><input type="submit" value="更新"></td>
    </tr>
</table>
</form>
</body>
</html>
